import { createHash } from 'crypto';
export namespace encrypt{
    /*
     * 产生密码
     */
	export function hashPassword(password: string, salt: string) {
		var hash = createHash('sha256');
		hash.update(password);
		hash.update(salt);
		return hash.digest('hex');
	}
}